<?php

namespace component\event\cleanruntime;

use hulang\tool\FileHelper;

/**
 * 情况runtime目录
 */
class Index
{
    public function index($param = [])
    {
        $paths = [
            runtime_path() . '/cache/',
            runtime_path() . '/logs/',
            runtime_path() . '/storage/',

        ];
        foreach ($paths as $path) {
            FileHelper::delDir($path);
        }
    }
}
